import * as Request from '../request';

// 登录
export const LoginAPI = async (params) => {
  const url = `/api/screen/auth`;
  let res: any;
  try {
    res = await Request.post(url, params);
  } catch (error) {
    console.log('request error:', url, error);
  }

  return res;
};

// Admin登录
export const LoginAdminAPI = async (params) => {
  const url = `/api/admin/login`;
  let res: any;
  try {
    res = await Request.post(url, params);
  } catch (error) {
    console.log('request error:', url, error);
  }

  return res;
};
